package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商家和分类关联对象 merchant_type
 * 
 * @author ruoyi
 * @date 2025-05-04
 */
public class MerchantType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 店铺id */
    private Long merchantId;

    /** 分类子id */
    @Excel(name = "分类子id")
    private Long typeId;

    /** 分类父id */
    @Excel(name = "分类父id")
    private Long parentId;

    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("merchantId", getMerchantId())
            .append("typeId", getTypeId())
            .append("parentId", getParentId())
            .toString();
    }
}
